﻿@model WordpressDemo.Models.DemoReadViewModel
@{
    ViewBag.Title = "Home";
    ViewBag.Identity = Model.Identity;
}

<header><h1>Wordpress Demo - READ</h1></header>

<h2>Posts</h2>

<ul>
    @foreach (var p in Model.Posts)
    {
        <li>
            <a href="@p.Url">@p.Title</a>
        </li>
    }
</ul>

<h2>Tags</h2>

<ul>
    @foreach (var t in Model.Tags)
    {
        <li>
            @t.Name (@t.PostCount posts)
        </li>
    }
</ul>